﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
using System.Configuration;
using BusinnessLogic;
using DataLayer;

namespace scrumbench
{
	public partial class AddTeamForm: Form
	{
		public AddTeamForm()
		{
			InitializeComponent();
		}

        private string teamnaam;

        public string Teamnaam
        {
            get { return teamnaam; }
            set { teamnaam = value; }
        }


        private void textBox1_TextChanged(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            teamnaam = tbTeamName.Text;

            dlInsertMember tempIMem = new dlInsertMember();
            tempIMem.Insertteam(teamnaam);

            MessageBox.Show("Congratulations, you have added " + teamnaam);

            this.Close();


        }

        private void label1_Click(object sender, EventArgs e)
        {

        }

        private void exitToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Close();
        }
        
	}
}
